extends /layouts/main

block append variables
  - let headTitle = error.title || t('error.404.title')
  - let layout_header_class = "main__header_center"
  - var themeEnabled = true

block content
  +b.error
    +e('h1').type= headTitle
    +e.code 404
    if error.info
      +e.text
        != error.info

    if handlerExists('search')
      p= t('error.404.use_search')

      +e.text
        +e('form').search(action="/search")
          +e.search-query-wrap
            +b('span').text-input.__search-query
              +e('input').control(autofocus type="text", name="query")
          +e.search-submit-wrap
            +b('button').button._action.__search-submit
              +e('span').text= t('error.404.search')
      +e.text= t('error.404.use_top')
    else
      +e.text
        a(href="/")= t('error.404.go_to_main')
